import request from '@/utils/request'

export function supplier_index(params) {
  return request({
    url: '/supplier/index',
    method: 'get',
    params
  })
}

export function supplier_add(data) {
  return request({
    url: '/supplier/add',
    method: 'post',
    data:data
  })
}

export function supplier_edit(data) {
  return request({
    url: '/supplier/edit',
    method: 'post',
    data:data
  })
}

export function supplier_delete(data) {
  return request({
    url: '/supplier/delete',
    method: 'post',
    data:data
  })
}

export function supplier_changeStatus(data) {
  return request({
    url: '/supplier/changeStatus',
    method: 'post',
    data:data
  })
}
